package cn.foolishbird.hamal.frame.queryParam;

import cn.foolishbird.hamal.frame.constant.BusinessEnum;
import cn.foolishbird.hamal.frame.constant.DictKeyName;

/**
 * 查询基本类型
 *
 * @author Eric
 * @version 1.0
 * @date 2020-03-11
 */
@DictKeyName("Hamal-QueryFieldType")
public enum QueryFieldTypeEnum implements BusinessEnum {

    INTEGER(1, "整数"),
    LONG(2, "长整数"),
    DOUBLE(3, "小数"),
    STRING(4, "字符串"),
    PICK_DATE_TO_lONG(5, "时间组件");

    private int type;

    private String desc;

    QueryFieldTypeEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public int value() {
        return type;
    }

    @Override
    public String content() {
        return desc;
    }
}
